import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNext()) { // 注意 while 处理多个 case
            String str = in.nextLine();
            int minCount = 0x3f3f3f3f;
            int maxCount = -0x3f3f3f3f;
            int[] hash = new int[26];
            for (char c : str.toCharArray()) {
                hash[c-'a']++;
            }
            for (char c : str.toCharArray()) {
                minCount = Math.min(minCount, hash[c-'a']);
                maxCount = Math.max(maxCount, hash[c-'a']);
            }
            int tmp = maxCount - minCount;
            if (tmp == 2 || tmp == 3 || tmp == 5 || tmp == 7) {
                System.out.println("Lucky Word");
                System.out.println(tmp);
                continue;
            }
            if (tmp == 0 || tmp % 2 == 0 || tmp % 3 == 0 || tmp % 5 == 0 || tmp % 7 == 0 || tmp == 1) {
                System.out.println("No Answer");
                System.out.println(0);
                continue;
            }
            System.out.println("Lucky Word");
            System.out.println(tmp);
        }
    }
}
